package org.liu.async.transom;

/**
 * Created by liuj on 2015/12/14.
 * 保存方法执行结果的临时类,可以记录方法的结果originResult,或执行的异常exception
 */
public class TemporaryData {

    /**
     * 被拦截的异常信息
     */
    private Exception exception;
    /**
     * 方法原本返回的结果
     */
    private Object originResult;

    public TemporaryData(Exception exception, Object originResult) {
        this.exception = exception;
        this.originResult = originResult;
    }

    public Exception getException() {
        return exception;
    }

    public void setException(Exception exception) {
        this.exception = exception;
    }

    public Object getOriginResult() {
        return originResult;
    }

    public void setOriginResult(Object originResult) {
        this.originResult = originResult;
    }
}
